<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<base href="<%=basePath%>">

<html>
<head>
<title>Title</title>
<link rel="stylesheet"
	href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
	integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
	crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
	integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
	crossorigin="anonymous"></script>
<script
	src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
	integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
	crossorigin="anonymous"></script>
<script
	src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
	integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
	crossorigin="anonymous"></script>
</head>
<style>
.listfrom {
	width: 600px;
	height: 500px;
	margin-left: 300px;
	margin-top: 100px
}
</style>
<body>
	<form action="${pageContext.request.contextPath}/update.Do"
		method="post" class="listfrom">
		

		<%-- <input type="hidden" name="roleid" value="${role.roleid}"> --%>
		<!-- &lt;%&ndash;在Servlet中使用request域向页面传送user&ndash;%&gt; -->
		<div class="form-row">
			<div class="form-group col-md-6">
				<label for="">角色编号</label> <input type="text" name="roleid"
					value="${role.roleid}" readonly="readonly" id="inputEmail4"
					class="form-control">
			</div>
		</div>
		<div class="form-row">
			<div class="form-group col-md-4">
				<label for="inputState">选择角色名称</label> <select id="inputState"
					name="roleName" value="${role.roleName}" class="form-control">
					
					<option value="系统管理员"
						<c:if test="${'1' eq role.roleName}">selected</c:if> > 系统管理员</option>
                <option value="用户管理员" <c:if test="${'2' eq role.roleName}">selected</c:if> > 用户管理员</option>
            </select>
</div>
</div>

<div class="form-row">
           <div class="form-group col-md-6">
            <label for="">角色编号</label>
            <input type="text" name="roleid" value="${role.fullName}"  id="inputEmail5" class="form-control">
        </div>
    </div>
<button type="submit" class="btn btn-primary">提交</button>
</form>
</body>
</html>

